// 引入Vue
import Vue from 'vue'
//引入Vuex
import Vuex from 'vuex'

import home from './home'
import user from './user'

//应用插件
Vue.use(Vuex)

const actions = {}
const mutations = {}
const state = {}
const getters = {}

//创建并暴露一个管理上述“四个弟弟”的“大哥”
export default new Vuex.Store({
	actions,
	mutations,
	state,
	getters,
	modules:{
		home,
		user
	}
})

